<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<c:set value="<%=request.getContextPath()%>" var="ctx"></c:set>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>评论</title>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <meta name="format-detection" content="telephone=yes">
    <meta name="msapplication-tap-highlight" content="no">
    <link rel="stylesheet" type="text/css" href="${ctx}/view/template/portal_1/css/css.css"/>
    <script src = "http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script >
	    var host = window.location.host;
	    /*微信 jssdk*/
	    wx.config({
	       debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
	       appId: '${appid}', // 必填，公众号的唯一标识
	       timestamp: '${timestamp}', // 必填，生成签名的时间戳
	       nonceStr: '${nonceStr}', // 必填，生成签名的随机串
	       signature: '${signature}',// 必填，签名，见附录1
	       jsApiList: ['getLocation',
	                   'onMenuShareTimeline',
	                   'onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
	    });
	    
	    wx.ready(function(){
			wx.onMenuShareTimeline({
			    link: host+'${ctx}/p/i?${param}&s=2' // 分享链接
			    
			});
			wx.onMenuShareAppMessage({
			    link: host+'${ctx}/p/i?${param}&s=2' // 分享链接
			});
	    });
    </script>
</head>
<body>
    <div id="SOHUCS" sourceId="${product.id }">
     		</div>
	<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" 
			src="http://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=cysbpNw3q&conf=prod_f948d348179128fde2432ac7d89790e9">
		</script>
</body>
</html>
